package ru.urfc.portal.ui.client.model.catalogs;

import ru.urfc.portal.ui.client.Style;

public abstract class DeviceState extends CatalogItemWithStyle {

	static public final DeviceState ACTIVE = new DeviceState("0", "Действующее") {
		@Override
		public String getStyleName(Style style) {
			return style.deviceActive();
		}
	};
	
	static public final DeviceState DEREGISTERED = new DeviceState("1", "Снято с учета") {
		@Override
		public String getStyleName(Style style) {
			return style.deviceDeregistered();
		}
	};
	
	static public final DeviceState PLANNED = new DeviceState("2", "Планируемое") {
		@Override
		public String getStyleName(Style style) {
			return style.devicePlaned();
		}
	};

	static public final DeviceState ACCEPTED = new DeviceState("3", "Разрешенное") {
		@Override
		public String getStyleName(Style style) {
			return style.deviceAccepted();
		}
	};
	
	static public final DeviceState RESERVED = new DeviceState("4", "Резерв") {
		@Override
		public String getStyleName(Style style) {
			return style.deviceReserved();
		}
	};

	static public DeviceState[] values = {ACTIVE, DEREGISTERED, PLANNED, ACCEPTED, RESERVED}; 

	protected DeviceState(String code, String text) {
		super(code, text);
	}
	
}
